package org.jbpt.hypergraph.abs;

/**
 * Basic graph vertex implementation
 * 
 * @author Artem Polyvyanyy
 */
public class Vertex extends GObject implements IVertex
{	
	private int x = 0, y = 0, w = 0, h = 0;
	public Vertex() {
		super();
	}

	public Vertex(String name, String desc) {
		super(name, desc);
	}

	public Vertex(String name) {
		super(name);
	}
	
	/*
	 * (non-Javadoc)
	 * @see de.hpi.bpt.hypergraph.abs.IVertex#getX()
	 */
	public int getX() {
		return this.x;
	}

	/*
	 * (non-Javadoc)
	 * @see de.hpi.bpt.hypergraph.abs.IVertex#setX(int)
	 */
	public void setX(int x) {
		this.x = x;
	}

	/*
	 * (non-Javadoc)
	 * @see de.hpi.bpt.hypergraph.abs.IVertex#getY()
	 */
	public int getY() {
		return this.y;
	}

	/*
	 * (non-Javadoc)
	 * @see de.hpi.bpt.hypergraph.abs.IVertex#setY(int)
	 */
	public void setY(int y) {
		this.y = y;
	}

	/*
	 * (non-Javadoc)
	 * @see de.hpi.bpt.hypergraph.abs.IVertex#getWidth()
	 */
	public int getWidth() {
		return this.w;
	}

	/*
	 * (non-Javadoc)
	 * @see de.hpi.bpt.hypergraph.abs.IVertex#setWidth(int)
	 */
	public void setWidth(int w) {
		this.w = w;
	}

	/*
	 * (non-Javadoc)
	 * @see de.hpi.bpt.hypergraph.abs.IVertex#getHeight()
	 */
	public int getHeight() {
		return this.h;
	}

	/*
	 * (non-Javadoc)
	 * @see de.hpi.bpt.hypergraph.abs.IVertex#setHeight(int)
	 */
	public void setHeight(int h) {
		this.h = h;
	}

	/*
	 * (non-Javadoc)
	 * @see de.hpi.bpt.hypergraph.abs.IVertex#setLayout(int, int, int, int)
	 */
	public void setLayout(int x, int y, int w, int h) {
		this.x = x;
		this.y = y;
		this.w = w;
		this.h = h;
	}

	/*
	 * (non-Javadoc)
	 * @see de.hpi.bpt.hypergraph.abs.IVertex#setLocation(int, int)
	 */
	public void setLocation(int x, int y) {
		this.x = x;
		this.y = y;
	}

	/*
	 * (non-Javadoc)
	 * @see de.hpi.bpt.hypergraph.abs.IVertex#setSize(int, int)
	 */
	public void setSize(int w, int h) {
		this.w = w;
		this.h = h;
	}
}
